package br.com.etecmatao.business.impl;

import br.com.etecmatao.business.AbstractBusiness;
import br.com.etecmatao.business.CategoriaDownloadBusiness;
import br.com.etecmatao.model.CategoriaDownload;
import java.util.List;

public class CategoriaDownloadBusinessImpl extends AbstractBusiness implements CategoriaDownloadBusiness{

    public void save(CategoriaDownload categoriaDownload) {
        CategoriaDownload categoriaBD = daoFactoryLocator.getCategoriaDownloadDAO().save(categoriaDownload);
    }

    public List<CategoriaDownload> finByAll() {
        List<CategoriaDownload> categoriaBD = daoFactoryLocator.getCategoriaDownloadDAO().findAll();
        return categoriaBD;
    }

    public void delete(CategoriaDownload categoriaDownload) {
        daoFactoryLocator.getCategoriaDownloadDAO().delete(categoriaDownload);
    }

    public void update(CategoriaDownload categoriaDownload) {
        daoFactoryLocator.getCategoriaDownloadDAO().update(categoriaDownload);
    }

    

}
